from django.urls import path
from web.views import customer, payment,account

urlpatterns = [
    # 客户相关
    path('customer/list/', customer.customer_list),
    path('customer/add/', customer.customer_add),
    path('customer/edit/<int:cid>/', customer.customer_edit),  # 这里用 <int:cid> 代替正则
    path('customer/del/<int:cid>/', customer.customer_del),
    path('customer/import/', customer.customer_import),
    path('customer/tpl/', customer.customer_tpl),

    # 付款相关
    path('payment/list/', payment.payment_list),
    path('payment/add/', payment.payment_add),
    path('payment/edit/<int:pid>/', payment.payment_edit),
    path('payment/del/<int:pid>/', payment.payment_del),
    # 登录相关
    path("login",account.login)
]
